﻿/// <reference path="turbo_common.js" />
/// <reference path="../General/Json.js" />
/// <reference path="ResponseUpdatePanelIncludeCollection.js" />

var $ResponseUpdatePanel = TA.Turbo.Common.ResponseUpdatePanel = function ResponseUpdatePanel()
{
	this.Includes = new $ResponseUpdatePanelIncludeCollection();
}
$ResponseUpdatePanel.Inherit(BaseJsonDeserializable);

$ResponseUpdatePanel.prototype.Id = "";
$ResponseUpdatePanel.prototype.Markup = "";
$ResponseUpdatePanel.prototype.Script = "";
$ResponseUpdatePanel.prototype.Includes = new $ResponseUpdatePanelIncludeCollection();

$ResponseUpdatePanel.prototype.DeserializeContent = function DeserializeContent(prShortName, value)
{
	switch (prShortName)
	{
		case "I": this.Id = value; break;
		case "M": this.Markup = value; break;
		case "S": this.Script = value; break;
		case "C":
			this.Includes = new $ResponseUpdatePanelIncludeCollection();
			this.Includes.Deserialize(value);
			break;
	}
}

$ResponseUpdatePanel.prototype.Process = function Process()
{
	this.Includes.Process();

	$(this.Id).innerHTML = this.Markup;
	eval(this.Script);
}
